<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=utf-8"%> 
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加管理员</title>
	<link href="css/moban.css" type="text/css" rel="stylesheet" media="screen" />
    <link href="css/widget.css" type="text/css" rel="stylesheet" media="screen" />
    <link href="css/table.css" type="text/css" rel="stylesheet" media="screen" />
    <link href="managementOfMember/css/btn.css" type="text/css" rel="stylesheet" media="screen" />
 <script type="text/javascript" src="js/return.js"></script>
<script type="text/javascript">
function cleans(obj){
	obj.innerHTML = "123321";
}
function showMsg() {
	var msg = '${message}';
	if(msg!=null&&msg!=""){
		alert(msg);
	}
}
function changeSrc(obj){
	obj.src="img/return2.png";
}
function changeSrc2(obj){
	obj.src="img/return.png";
}
</script>
</head>

<body onload="showMsg()">
<div style="background-color:#2E5E79;width:100%;height:50px;position:fixed;top:0;left:0;"></div>
<div id="package">
	<div id="hel">
		<div id="title">
    		<span><img src="managementOfMember/images/home.png" /> &nbsp;添加管理员</span>
    		<span id="right"><a href="showAdmin.action" target="main">
			<img src="img/return.png" onmouseover="changeSrc(this)" onmouseout="changeSrc2(this)"/>
			</a></span>
    	</div>
    </div>
	<div id="content" style="padding-top:50px;">
    	<form action="addAdmin.action" method="post">
        	<table>
            	<tr style="height:40px;">
                	<td>用户名：</td>
                    <td><input type="text" name="masterId" id="first" class="in" /></td>
                </tr>
                
                <tr style="height:40px;">
                	<td>密 码：</td>
                    <td><input type="text" name="password" class="in" value="123456" /></td>
                </tr>
                <tr style="height:40px;">
                	<td>院 系：</td>
                	<td>
                		<select name="departmentid">
                			<s:iterator value="#request.departments" var="department">
					    		<option value="<s:property value="#department.getId()"/>"><s:property value="#department.getName()"/></option> 
					    	</s:iterator>
                		</select>
                	</td>
                </tr>
                <tr style="height:40px;">
                	<td><input type="submit" name="submit" class="className" value=" 确 认 " /></td>
                    <td><input type="reset" name="reset" class="className" value=" 重 置  " /></td>
                </tr>
            </table>
        </form>
    </div>
</div>
<script language="javascript">
	document.getElementById('first').focus();
</script>
</body>
</html>
